package b1.scenes.entry
{
	import b1.net.*;
	import b1.utils.*;
	import b1.scenes.*;
	import b1.scenes.home.*;
	
	import flash.display.Sprite;
	import flash.filters.*;
	import flash.text.*;

	public class FirstEntry extends Sprite
	{
		public var descriptionText:TextField;
		
		public function FirstEntry()
		{
			//天空
			var sky:Sky = new Sky();
			addChild(sky);
			//背景
			var backgroundImg:HomeBackground = new HomeBackground(4);
			addChild(backgroundImg);
			//标题
			var titleText:TextField = new TextField();
			titleText.selectable = false;
        	titleText.autoSize = TextFieldAutoSize.LEFT;
			titleText.defaultTextFormat = new TextFormat("微软雅黑", 30, 0xFFFFFF);
			titleText.text = "请选择角色";
			titleText.filters = [new GlowFilter(0x000000, 1, 1.3, 1.3, 100, BitmapFilterQuality.HIGH)];
			titleText.x = 100;
			titleText.y = 60;
			addChild(titleText);
			
			//左侧阵营
			var leftSelector:AnimalSelector = new AnimalSelector(0);
			leftSelector.x = 150;
			leftSelector.y = 380;
			addChild(leftSelector);
			
			//右侧阵营
			var rightSelector:AnimalSelector = new AnimalSelector(1);
			rightSelector.x = 410;
			rightSelector.y = 140;
			addChild(rightSelector);
			
			//描述文字
			descriptionText = new TextField();
			descriptionText.selectable = false;
        	descriptionText.autoSize = TextFieldAutoSize.LEFT;
			descriptionText.defaultTextFormat = new TextFormat("微软雅黑", 16, 0xFFFFFF);
			descriptionText.text = "";
			descriptionText.filters = [new DropShadowFilter(2, 45, 0x000000, 25, 3, 3, 2, 2)];
			descriptionText.x = 500;
			descriptionText.y = 380;
			addChild(descriptionText);
			
		}
		
	}
}